package bean;

import java.util.List;
import java.util.ArrayList;


/**
 * @auther hewenhui
 * @see <a href="hetp://www.codingmaster.com> java </a>
 */

public class OrderForm {
    private static OrderForm orderForm;

    private int Oid; // 自增主键 订单id
    private int Sid; // 商店id      //无用属性//暂时不删除
    private int Aid; // 收货地址id
    private int recipient_Uid;// 收货人
    private int shopper_Uid;// 购物人id
    private double price;// 整个订单的价格

    private List<OrderDetails> productsList; // 商品列表

    public OrderForm() {
        productsList = new ArrayList<>();
    }

    @Override
    public String toString() {
        return "OrderForm{" +
                "Oid=" + Oid +
                ", Sid=" + Sid +
                ", Aid=" + Aid +
                ", recipient_Uid=" + recipient_Uid +
                ", shopper_Uid=" + shopper_Uid +
                ", price=" + price +
                ", productsList=" + productsList +
                '}';
    }

    public int getOid() {
        return Oid;
    }

    public void setOid(int oid) {
        Oid = oid;
    }

    public int getSid() {
        return Sid;
    }

    public void setSid(int sid) {
        Sid = sid;
    }

    public int getAid() {
        return Aid;
    }

    public void setAid(int aid) {
        Aid = aid;
    }

    public int getRecipient_Uid() {
        return recipient_Uid;
    }

    public void setRecipient_Uid(int recipient_Uid) {
        this.recipient_Uid = recipient_Uid;
    }

    public int getShopper_Uid() {
        return shopper_Uid;
    }

    public void setShopper_Uid(int shopper_Uid) {
        this.shopper_Uid = shopper_Uid;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public List<OrderDetails> getProductsList() {
        return productsList;
    }

    public void setProductsList(List<OrderDetails> productsList) {
        this.productsList = productsList;
    }
}